import request from '@/utils/request'

// 查询岗位分类列表
export function listPostClassify(params) {
  return request({
    url: '/recruit/post-classify/list',
    method: 'get',
    params
  })
}

// 查询岗位分类详细
export function getPostClassify(postClassifyId) {
  return request({
    url: '/recruit/post-classify/' + postClassifyId,
    method: 'get'
  })
}

// 新增岗位分类
export function addPostClassify(data) {
  return request({
    url: '/recruit/post-classify',
    method: 'post',
    data
  })
}

// 修改岗位分类
export function updatePostClassify(data) {
  return request({
    url: '/recruit/post-classify',
    method: 'put',
    data
  })
}

// 删除岗位分类
export function delPostClassify(postClassifyId) {
  return request({
    url: '/recruit/post-classify/' + postClassifyId,
    method: 'delete'
  })
}
